package com.xunfang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author yellow Doctor
 * @date 2025-11-11
 * @desc https://blog.csdn.net/hekai7217
 *
 *   01 mq 的简单模型
 *   product ======>consumer
 *   01 发消息
 *        先在rabbitMQ 服务中创建队列
 *        rabbitTemplate.convertAndSend("simple.queue", message);
 *
 *   02  收消息
 *       @RabbitListener(queues = "simple.queue")  监听队列
 *       public void handler(String msg){
 *
 *       }   //收到消息后执行的方法
 */
@SpringBootApplication
public class ProApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProApplication.class, args);
    }

}
